package InterfaceLambdaAndInnerClasses.interfaces;

import java.util.ArrayList;
import java.util.Collections;

public class EmployeesSortTest {
    public static void main(String[] args){
        ArrayList<Employees> employees =new ArrayList<>();

        employees.add(new Employees("Harry Hacker",35000));
        employees.add(new Employees("Carl cracker",75000));
        employees.add(new Employees("Tony Tester",38000));

        Collections.sort(employees);

        for(Employees employee : employees){
            System.out.println(employee.toString());
        }
    }
}
